using System; 
using System.Text; 
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration; 
using System.Xml; 
using System.Xml.Serialization;
using SubSonic; 
using SubSonic.Utilities;
namespace Data
{
    /// <summary>
    /// Controller class for Orders
    /// </summary>
    public partial class feedbackController
    {


		
	    /// <summary>
	    /// Inserts a record, can be used with the Object Data Source
	    /// </summary>
        [DataObjectMethod(DataObjectMethodType.Insert, true)]
	    public void Insert(
                                        String 
                            ID
                            , 
                            String 
                            Fullname
                            , 
                            String 
                            Email
                            , 
                            String 
                            Phone
                            , 
                            String 
                            Company
                            , 
                            String 
                            Content
                            , 
                            String 
                            Active
                            , 
                            Int32 
                            Status
                            , 
                            DateTime 
                            CreatedDate
            )
	    {		
			feedback item = new feedback();
			
			item.ID = ID;
			item.Fullname = Fullname;
			item.Email = Email;
			item.Phone = Phone;
			item.Company = Company;
			item.Content = Content;
			item.Active = bool.Parse(Active);
			item.Status = Status;
			item.CreatedDate = CreatedDate;
		    item.Save("");
	    }

	    /// <summary>
	    /// Updates a record, can be used with the Object Data Source
	    /// </summary>
        [DataObjectMethod(DataObjectMethodType.Update, true)]
	    public void Update( String  ID,  String  Fullname,  String  Email,  String  Phone,  String  Company,  String  Content,  String  Active,  Int32  Status,  DateTime  CreatedDate)
		{
			feedback item = new feedback();
			
			item.ID = ID;
			item.Fullname = Fullname;
			item.Email = Email;
			item.Phone = Phone;
			item.Company = Company;
			item.Content = Content;
			item.Active = bool.Parse(Active);
			item.Status = Status;
			item.CreatedDate = CreatedDate;
		    item.MarkOld();
		    item.Save("");		
	    }
    }

}
